package cn.blbsz.shop.utils;

public class RandomCode {
	
//	public static void main(String[] args) {
//		String createRandom = createRandom(4);
//		System.out.println(createRandom);
//	}
	public static String createRandom(int length){
		 String retStr = "";
		 int intR = 0;
		  for (int i = 0; i < length; i++) {
			  double dblR = Math.random() * 10;
			  intR = (int) Math.floor(dblR);
			  retStr+=intR;
		  }
		 return retStr;
		}
}
